package com.projManage.service.model;

import java.io.Serializable;

import java.util.ArrayList;
import java.util.List;


/**
 * <a href="projManagedbSoap.java.html"><b><i>View Source</i></b></a>
 *
 * <p>
 * ServiceBuilder generated this class. Modifications in this class will be
 * overwritten the next time is generated.
 * </p>
 *
 * <p>
 * This class is used by
 * <code>com.projManage.service.service.http.projManagedbServiceSoap</code>.
 * </p>
 *
 * @author Brian Wing Shun Chan
 *
 * @see com.projManage.service.service.http.projManagedbServiceSoap
 *
 */
public class projManagedbSoap implements Serializable {
    private long _id;
    private String _username;
    private String _password;
    private String _dpurl;
    private boolean _login;
    private String _loginuser;

    public projManagedbSoap() {
    }

    public static projManagedbSoap toSoapModel(projManagedb model) {
        projManagedbSoap soapModel = new projManagedbSoap();

        soapModel.setId(model.getId());
        soapModel.setUsername(model.getUsername());
        soapModel.setPassword(model.getPassword());
        soapModel.setDpurl(model.getDpurl());
        soapModel.setLogin(model.getLogin());
        soapModel.setLoginuser(model.getLoginuser());

        return soapModel;
    }

    public static projManagedbSoap[] toSoapModels(projManagedb[] models) {
        projManagedbSoap[] soapModels = new projManagedbSoap[models.length];

        for (int i = 0; i < models.length; i++) {
            soapModels[i] = toSoapModel(models[i]);
        }

        return soapModels;
    }

    public static projManagedbSoap[][] toSoapModels(projManagedb[][] models) {
        projManagedbSoap[][] soapModels = null;

        if (models.length > 0) {
            soapModels = new projManagedbSoap[models.length][models[0].length];
        } else {
            soapModels = new projManagedbSoap[0][0];
        }

        for (int i = 0; i < models.length; i++) {
            soapModels[i] = toSoapModels(models[i]);
        }

        return soapModels;
    }

    public static projManagedbSoap[] toSoapModels(List<projManagedb> models) {
        List<projManagedbSoap> soapModels = new ArrayList<projManagedbSoap>(models.size());

        for (projManagedb model : models) {
            soapModels.add(toSoapModel(model));
        }

        return soapModels.toArray(new projManagedbSoap[soapModels.size()]);
    }

    public long getPrimaryKey() {
        return _id;
    }

    public void setPrimaryKey(long pk) {
        setId(pk);
    }

    public long getId() {
        return _id;
    }

    public void setId(long id) {
        _id = id;
    }

    public String getUsername() {
        return _username;
    }

    public void setUsername(String username) {
        _username = username;
    }

    public String getPassword() {
        return _password;
    }

    public void setPassword(String password) {
        _password = password;
    }

    public String getDpurl() {
        return _dpurl;
    }

    public void setDpurl(String dpurl) {
        _dpurl = dpurl;
    }

    public boolean getLogin() {
        return _login;
    }

    public boolean isLogin() {
        return _login;
    }

    public void setLogin(boolean login) {
        _login = login;
    }

    public String getLoginuser() {
        return _loginuser;
    }

    public void setLoginuser(String loginuser) {
        _loginuser = loginuser;
    }
}
